package com.ruoyi.hr.mapper.trainmanage;


import com.ruoyi.hr.util.BaseResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TrainManageMapper {

    List<Map<String, Object>> findDataList(Map map);
    List<Map<String, Object>> findDataListHistory(Map map);
    int add(Map map);
    Map<String,Object> findDataById(String id);
    int edit(Map map);
    int remove(String id);
    List<Map<String,Object>> findEmp(Map map);
    int addEmp(@Param("trainId") String trainId, @Param("EmpEid") String EmpEid);
    List<Map<String,Object>> findTrainEmp(String id);
    int removeTrainEmp(String trainId);
    String findEmpNames(String trainId);
    List<Map<String,Object>> findFileDataList(Map map);
    int addFile(Map map);
    int removeFile(String id);
    Map<String,Object> findFileById(String id);
    String findFileIds(String trainId);
    List<Map<String,Object>> findEmpList(String trainId);
    int updateScore(@Param("id") String id,@Param("score") String score);
    String isSeal(String trainId);

    /**
     * 同步数据
     * @param map
     * @return
     */
    int insertTraining(Map map);
    int updateSeal(String trainId);
}
